import sys
from PyQt6.QtWidgets import QApplication
from ui import MainUI

if __name__ == "__main__":
    # 初始化PyQt应用
    app = QApplication(sys.argv)
    # 实例化主UI并显示
    main_ui = MainUI()
    main_ui.show()
    # 运行应用循环
    sys.exit(app.exec())